﻿using Admin.NET.Core;
namespace Admin.NET.Application.Entity;

/// <summary>
/// 课程
/// </summary>
[SugarTable("Kecheng","课程")]
public class Kecheng  : EntityBase
{
    /// <summary>
    /// 选课任务
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "XuankeTaskId", ColumnDescription = "选课任务")]
    public long XuankeTaskId { get; set; }
    
    /// <summary>
    /// 课程名称
    /// </summary>
    [Required]
    [SugarColumn(ColumnName = "Name", ColumnDescription = "课程名称", Length = 100)]
    public string Name { get; set; }
    
    /// <summary>
    /// 课程介绍
    /// </summary>
    [SugarColumn(ColumnName = "Description", ColumnDescription = "课程介绍", Length = 300)]
    public string? Description { get; set; }
    
    /// <summary>
    /// 上课老师
    /// </summary>
    [SugarColumn(ColumnName = "TeacherId", ColumnDescription = "上课老师")]
    public long? TeacherId { get; set; }
    
    /// <summary>
    /// 上课地点
    /// </summary>
    [SugarColumn(ColumnName = "Address", ColumnDescription = "上课地点", Length = 100)]
    public string? Address { get; set; }
    
    /// <summary>
    /// 招生人数
    /// </summary>
    [SugarColumn(ColumnName = "ZhaoshengRenshu", ColumnDescription = "招生人数")]
    public int? ZhaoshengRenshu { get; set; }
    
    /// <summary>
    /// 录取人数
    /// </summary>
    [SugarColumn(ColumnName = "LvquRenshu", ColumnDescription = "录取人数")]
    public int? LvquRenshu { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [SugarColumn(ColumnName = "Remark", ColumnDescription = "备注", Length = 300)]
    public string? Remark { get; set; }

    /// <summary>
    /// 每班人数
    /// </summary>
    [SugarColumn(ColumnName = "BanjiLimit", ColumnDescription = "每班人数")]
    public int? BanjiLimit { get; set; }

    /// <summary>
    /// 创建者姓名
    /// </summary>
    [SugarColumn(ColumnName = "CreateUserName", ColumnDescription = "创建者姓名", Length = 64)]
    public string? CreateUserName { get; set; }
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    [SugarColumn(ColumnName = "UpdateUserName", ColumnDescription = "修改者姓名", Length = 64)]
    public string? UpdateUserName { get; set; }
    
}
